#ifndef _UART_PROTOCAL_H_
#define _UART_PROTOCAL_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef enum
{
    ESP_VERSION = 0x00,     //VERSION
    ESP_LED,                //LED
    ESP_FAN,                //风扇
    ESP_PTC,                //加热片
    ESP_HUMIDIFIER,         //加湿器
} ESP_SEND_CMD_T;

typedef enum
{
    AB_TEMP = 0x10,          //温度
    AB_HUMI,                 //湿度
    AB_LIGHT,                //光线
} AB_SEND_CMD_T;


void AB32_msgProc(uint8_t *rxBuff, int len);
void esp_send_msg(uint8_t code, uint8_t data1, uint8_t data2);

uint32_t get_temp_status(void);
uint32_t get_humi_status(void);
uint32_t get_light_status(void);

#endif
